package model

import (
	"context"
	"service/ctrl"
	"service/model/mod"

	gpb "gitee.com/cloudapex/protos/project_cache/pb"
	"google.golang.org/grpc"
)

var ProjCacheServer projCacheServer

func init() {
	ctrl.GCon.RegistClienter(mod.GCONN_HR_CACHE, func(c *grpc.ClientConn) { ProjCacheServer.cli = gpb.NewCrmProjectConfigServerClient(c) })
}

type projCacheServer struct {
	cli gpb.CrmProjectConfigServerClient
}

//说明：编辑项目配置
func (this *projCacheServer) CrmProjectConfigUpdate(ctx context.Context, in *gpb.CrmProjectConfigCreateReq) (*gpb.CrmProjectConfigRes, error) {
	return this.cli.CrmProjectConfigUpdate(ctx, in)
}
